package com.ruoyi.mall.product.domain.vo;

import com.ruoyi.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @program: zqs-mall
 * @description:
 * @author: Mr.Zhang
 * @create: 2022-06-03 22:40
 **/
public class PmsAttrVo {

    /**
     * 属性id
     */
    private Long id;

    /**
     * 属性名
     */
    @Excel(name = "属性名")
    private String name;

    /**
     * 是否需要检索[0-不需要，1-需要]
     */
    @Excel(name = "是否需要检索[0-不需要，1-需要]")
    private Long searchType;

    /**
     * 属性图标
     */
    @Excel(name = "属性图标")
    private String icon;

    /**
     * 可选值列表[用逗号分隔]
     */
    @Excel(name = "可选值列表[用逗号分隔]")
    private String valueSelect;

    /**
     * 属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]
     */
    @Excel(name = "属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]")
    private Long type;

    /**
     * 启用状态[0 - 禁用，1 - 启用]
     */
    @Excel(name = "启用状态[0 - 禁用，1 - 启用]")
    private Long enable;

    /**
     * 快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整
     */
    @Excel(name = "快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整")
    private Long showDesc;

    /**
     * 分类id
     */
    @Excel(name = "分类id")
    private Long categoryId;

    /**
     * 所属分类名称
     */
    @Excel(name = "所属分类名称")
    private String categoryName;

    /**
     * 规格分组id
     */
    @Excel(name = "规格分组id")
    private Long groupId;

    /**
     * 规格分组名称
     */
    @Excel(name = "规格分组名称")
    private String groupName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSearchType(Long searchType) {
        this.searchType = searchType;
    }

    public Long getSearchType() {
        return searchType;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIcon() {
        return icon;
    }

    public void setValueSelect(String valueSelect) {
        this.valueSelect = valueSelect;
    }

    public String getValueSelect() {
        return valueSelect;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setEnable(Long enable) {
        this.enable = enable;
    }

    public Long getEnable() {
        return enable;
    }

    public void setShowDesc(Long showDesc) {
        this.showDesc = showDesc;
    }

    public Long getShowDesc() {
        return showDesc;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("searchType", getSearchType())
                .append("icon", getIcon())
                .append("valueSelect", getValueSelect())
                .append("type", getType())
                .append("enable", getEnable())
                .append("showDesc", getShowDesc())
                .append("categoryId", getCategoryId())
                .append("categoryName", getCategoryName())
                .append("groupName", getGroupName())
                .append("groupId", getGroupId())
                .toString();
    }
}
